/*
 * @Author: your name
 * @Date: 2021-09-29 16:03:55
 * @LastEditTime: 2021-10-19 14:36:48
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \quan-form-generator\src\router\index.js
 */
import Vue from "vue";
import VueRouter from "vue-router";
import Home from "../views/Home/Home.vue";

Vue.use(VueRouter);

const routes = [
  {
    path: "/",
    name: "home",
    component: Home,
  },
  {
    path: "/parser",
    name: "parser",
    component: () =>
      import(
        /* webpackChunkName: "parser-example" */ "@/components/parser/example/Index.vue"
      ),
  },
  {
    path: "/tinymce",
    name: "tinymce",
    component: () =>
      import(
        /* webpackChunkName: "tinymce-example" */ "@/components/tinymce/example/Index.vue"
      ),
  },
];

const router = new VueRouter({
  mode: "history",
  base: process.env.BASE_URL,
  routes,
});

export default router;
